package cn.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.bw.itext.pdf.annotation.PdfValue;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName employee
 */
@TableName(value ="employee")
@Data
public class Employee implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 名字
     */
    @PdfValue(colName = "名字")
    private String name;

    /**
     * 工号
     */
    @PdfValue(colName = "工号")
    private Integer jobNum;

    /**
     * 部门
     */
    @PdfValue(colName = "部门")
    private String section;

    /**
     * 职务
     */
    @PdfValue(colName = "职务")
    private String job;

    /**
     * 入职时间
     */
    @PdfValue(colName = "入职时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 底薪
     */
    @PdfValue(colName = "底薪")
    private String pay;

    /**
     * 年龄
     */
    @PdfValue(colName = "年龄")
    private Integer age;
    /**
     * 文件id
     */
    private Integer fid;

    /**
     * 住宿地址
     */
    @PdfValue(colName = "住宿地址")
    private String address;

    /**
     * 联系方式
     */
    @PdfValue(colName = "联系方式")
    private String phone;
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    @TableField(exist = false)
    private String fname;
    @TableField(exist = false)
    private String agetwo;
    @TableField(exist = false)
    private String paytwo;
    @TableField(exist = false)
    private String fpath;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}